Fixed bunch of logic bugs in how Alpha cache is updated.