Rewrote certain aspects of SECRET_KEY retrieval to use file context managers