-response = ssm.get_parameter(Name='GSHEETS_PICKLE_BASE64', WithDecryption=True)
-gsheets_pickle_base64 = response['Parameter']['Value']
+if 'GSHEETS_PICKLE_BASE64' in os.environ:
+ gsheets_pick_base64 = os.environ['GSHEETS_PICKLE_BASE64']
+else:
+ response = ssm.get_parameter(Name='GSHEETS_PICKLE_BASE64',
+ WithDecryption=True)
+ gsheets_pickle_base64 = response['Parameter']['Value']
+ os.environ['GSHEETS_PICKLE_BASE64'] = gsheets_pickle_base64