Added timing attack mitigation functionality