1. A method comprising: enabling mitigations for at least one first calling software module such that executing at least one first memory operation for the at least one first calling software module comprises applying one or more mitigation actions that reduces a likelihood of a memory error occurring as a result of the at least one first memory operation; in response to detecting that mitigations are to be enabled for at least one second calling software module, disabling mitigations for one or more of the at least one first calling software module such that, following the disabling, subsequently executing at least one second memory operation for the one or more of the at least one first calling software module comprises executing the at least one second memory operation without applying the one or more mitigation actions.