locale update
move compress and secure outside of the condition