Clear HashMaps after preconditions are met